<template>
    <div>

        <Row style="margin-top:20px">
            <Col span="19" class="table-form-input-select-col">
            <span class="alltitle"><router-link to="项目列表"> 项目列表</router-link>>网申查询</span>
            </Col>

        </Row>
        <Row class="fazhanlicheng" style="margin-top:20px;height:40px;padding-left:20px">
            <span class="title">网申查询</span>

        </Row>
        <Row class="fazhanlicheng" style="heigh:60px;">
            <Col class="inner-info2" offset="1">网申查询地址</Col>
            <Col span="4" offset="1">
             <Input class="time-picker" placeholder="输入地址" style="width: 100%" v-model="vr360" />
            </Col>


        </Row>

        <Row class="add-new-progress" style="heigh:60px;background:#f5f7f9">
            <Button type="primary" style="width:100px" @click="handleCoInfo">确认提交</Button>
        </Row>

    </div>
</template>
<script>
import {
    formatDate
} from '@/js/date.js'
export default {
    data() {
            return {

                data: [],

                vr360: '',

            }
        },
        methods: {



            handleCoInfo() {

                var poid = localStorage.pid;
                var self = this


                $.ajax({
                    url: " https://evp.51job.com/51job/api/51miniadmin/back.php?action=urledit&id=" + poid+"&type=1",
                    data: {
                        url: self.vr360,

                    },
                    type: "POST",
                    dataType: "json",
                    success: function(data) {
                        console.log(data);
                        self.$Message.success("修改成功！");

                    }
                });
            },

            /*time(t) {
                var date = new Date(t),
                    Y = date.getFullYear() + "-",
                    M =
                    (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) + "-",
                    D = date.getDate();
                return Y + M + D;
            }*/
        },
        created() {
            var self = this;
            var poid = localStorage.pid;

            $.ajax({
                url: " https://evp.51job.com/51job/api/51miniadmin/back.php?action=urlone&id=" + poid,
                type: "POST",
                dataType: "json",
                success: function(data) {
                    console.log(data);
                    self.data = data.data;
                    self.vr360=data.data.personal_resumeindex
                    /*for (var i = 0; i < data.data.length; i++) {
                        self.data[i].time = self.Format(self.data[i].time, "yyyy-MM-dd")
                        self.data[i].time_end = self.Format(self.data[i].time_end, "yyyy-MM-dd")

                    }*/

                }
            });
        }
}
</script>
<style scoped>
.innertitle {
    line-height: 30px;
    font-size: 14px;
    text-decoration: underline;
    color: #4B80FD;
    font-family: MicrosoftYaHei;
    cursor: pointer;
}

.fazhanlicheng {
    box-sizing: border-box;
    background: #fff;
    margin-bottom: 1px;
    padding: 0px;
}

.title {
    font-size: 14px;
    color: #333333;
    letter-spacing: 0;
    line-height: 40px;
    font-weight: bold;
}

.inner-info2 {
    float: left;
    line-height: 60px;
    font-size: 14px;
    color: #333;
    font-family: MicrosoftYaHei;
}

.time-picker {
    margin-top: 15px;
}

.add-new-progress {
    box-sizing: border-box;
    background: #fff;
    padding: 0;
    text-align: center;
    color: #4B80FD;
    font-family: SourceHanSansCN-Normal;
    font-size: 14px;
    line-height: 60px;
    cursor: pointer;
}
</style>
